home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
comm
/
cs_mac06.zip
/
CS-MAC.MAC
< prev
next >
Wrap
Text File
|
1992-08-23
|
14KB
|
300 lines
┌────────────────────────────────┐
│ Chuck Seyboldt's COMMO Macro │ CS-MAC06:CS-MAC.MAC
└────────────────────────────────┘
* This version of CS-MAC contains radical changes from earlier
* versions. Most functions are split off into "smaller.mac"s.
* You will need to *> !EDIT! <* Three (3) of these .MAC files
^^^^^^
!1 < Contents: COMMO.MAC The Base Commo Macro file
!2 <───┐ TABLE.MAC Prompts for a variety of BBS and Mail doors
!3 <───┤ LOGON.MAC Generic Logon and Mailrun routines
│ ACTION.MAC File fetchin' and sendin' routines
│ CS-MAC.MAC This text plus a menu driver to add BBS's
│ ASSIGN.KEY List of COMMO.MAC key assignments
├─────────────┐
! * In these 3 files, you !NEED! to edit! lines
! * that have a "!" in the first column.
* COMMO.FON links to COMMO.MAC with a linked macro label.
* COMMO.MAC links to TABLE.MAC with the same macro label name.
* TABLE.MAC links to LOGON.MAC A generic logon occurs. If the
macro label has an ACTION file
associated with it .....
* LOGON.MAC links to ACTION.MAC for file transfers. After file
transfers are complete ....
* ACTION.MAC returns to LOGON.MAC for a MAILRUN. After logoff,
* LOGON.MAC returns to COMMO.MAC and dials the next marked entry.
* In pictures, the sequence looks something like this .......
/-------------------------/ /----------------------------/
| 1. COMMO.FON | | 2. COMMO.MAC |
|-------------------------| |----------------------------|
| BBS {#} {_pas} !{lnk} | ----| | {:start} set your name |
| | | | and other personal stuff |
/-------------------------/ | | -------- |
| | Central Commo Control |
/----------------------------/ | | {:various} key assignments |
| 3. TABLE.MAC | | | for manual terminal control|
|----------------------------| | | -------- |
| {:m_ware} MAILware prompt | |---> |!{:lnk} {unmark .FON} option|
| table | | {load TABLE.MAC,lnk}| --|
| --------- | |!{:add} {load TABLE.MAC,add}| |
| {:bbs_type} BBSware prompt | | | |
| table | /----------------------------/ |
| --------- | |
|!{:lnk} {setv bbsid} | <---------------------------------------|
| {setv door command} |
| {setv "m_ware"} |
| {setv "bbs_type"} | /-----------------------------/
| {load LOGON.MAC,glr}| --| | 4. LOGON.MAC |
|!{:add} {setv 2nd BBS} | | |-----------------------------|
| {load LOGON.MAC,glr}| | |!{:respond} set generic BBS |
| | | | response strings |
/----------------------------/ | | -------- |
|--> | {:glr} Generic Logon Routine|
/----------------------------/ | Using responses from |
| 5. ACTION.MAC | | TABLE.MAC & LOGON.MAC|
|----------------------------| | |
| {open and read ACTION} | <----- | {ifex ACTION,load ACTION!} |
| {fetch and send files} | | {otherwise, goto :noact} |
| --> By BBSID | | |
| {load LOGON.MAC,noact} | -----> | {:noact} BBSID empty? If so|
| | | return to COMMO.MAC|
/----------------------------/ | |
(ACTION.MAC is optional) | {:mailrun} Open maildoor |
| Send a .REP |
| Take a .QWK |
| Logoff BBS |
| {load COMMO.MAC,aln} |
| (Dial marked BBS's) |
| |
/-----------------------------/
* Other names and definitions:
* %bbsid The .QWK identifier (%bbsid empty skips attempt at mail)
* %abbr A two or three character convenience for file .ext's
* %dorno The string to send to the host to get to MAILware prompt
* %proto The mail transfer protocol to use. Z, Y, X-CRC supported
* BBSware: One of a variety of BBS software packages that is available.
This family of Commo macros supports;
- PCBoard v14.5a (Clark Development)
- Spitfire
- Wildcat! (Mustang Software)
- Remote Access
- GAP
- T.A.G.
- MacroBBS (Jeff Oberlee's BBS via Commo macros)
* MAILware: One of a family of mail doors
This family of Commo macros supports;
- MarkMail 2
- Qmail 2
- Qmail 4
- Jimmer
- Jetmail
- MKQwk
- DCQwk
- Rosemail
- Silver Express
────────────────────────────────────────────────────────────────────────────────
* * Lines with a "*" may be deleted.
* Deleting my comments is a good thing to do, it saves much RAM.
* You have exactly the same macro family that I use myself
* Supported by COMMO v.5x: This macro is in use as of 08/25/92 to fetch
* mail from a variety of sources. The macro text has terse commentary.
* You will need a file, RENQWK.BAT, in your COMMO home directory, to
* rename .QWK packets to avert download crashes.
* An example RENQWK.BAT is in the LOGON.MAC file ... ready to snip out.
* Many thanks to Fred Brucker for providing the intelligent, excellent
* platform that supports this work. COMMO is powerful and fun.
* ASSUMPTIONS *
* Zmodem is assumed for most file transfers in these macros.
* I assume you are using a registered copy of DSZ.
* I assume that DSZ is located in your DOS path.
* KEY ASSIGNMENTS *
* These macros contain many features that can be called without
* being ONLINE or in a mailrun. Review ASIGN.KEY for key assigments.
* FEATURES *
* - fast
* - runs unattended
* - one macro for many BBSs
* - one session may call several BBSs
* - works for MarkMail, Qmail, RoseMail, Jimmer, and JetMail
* (all BBS and mail door prompts be set to EXPERT)
* - renames .QWK files (RENQWK.BAT included in this file)
* - deletes .REP files (via registered DSZ -u function)
* - checks message count from MarkMail doors.
* Skips mail download if message count is less than 30.
* > ACTION PROCESSOR macro for file uploads and downloads.
* - Includes a macro that will prompt you for selections and
* make the BBS specific "ACTION" lists based on your input.
* - Keeps a timestamped ACTION history file for each BBS.
* - Lean use of RAM by using multiple .MAC files instead of 1 big one.
* - Easily expands to new or changing BBSware and MAILware.
* Support *
* - I really enjoy sharing COMMO. Your questions and advice
* are welcome. You may find me in U'NI's and Ilink's COMMO
* conferences almost daily ... on RIME via Directory Assistance
* occasionally ... or at NLBBS (1,207 761-4782).
* - No $ charge for this work. It's full of room to improve.
* I consider your comments to be ample payment.
────────────────────────────────────────────────────────────────────────────────
{:new_bbsid} {sete-p0 new_bbsid} ;Alt-M from COMMO.MAC
{disp 3,30,12, Welcome to CS-MAC }
{disp 4,30,12, Welcome to CS-MAC }
{disp 5,30,12, Welcome to CS-MAC }
{disp 6,30,12, Welcome to CS-MAC }
{disp 7,30,12, Welcome to CS-MAC }
{disp 8,30,12, Welcome to CS-MAC }
{disp 9,30,12, Welcome to CS-MAC }
{inpu link,What is the linking ^(macro^) name?}
{inpu bbsid,What is the BBSID for that Board?}
{disp 15,30,12, pcb = PCBoard }
{disp 16,30,12, s-f = Spitfire }
{disp 17,30,12, wc! = Wildcat! }
{disp 18,30,12, gap = GAP }
{disp 19,30,12, rma = Remote Access }
{disp 20,30,12, tag = T.A.G. }
{disp 21,30,12, mac = MACRObbs }
{sete-p0 g_0}
{:g_0} {inpu bbsware,Choose BBSware for %bbsid from the list below}
{comp bbsware,pcb} {ifco g_1}
{comp bbsware,s-f} {ifco g_1}
{comp bbsware,wc!} {ifco g_1}
{comp bbsware,gap} {ifco g_1}
{comp bbsware,rma} {ifco g_1}
{comp bbsware,tag} {ifco g_1}
{comp bbsware,mac} {ifco g_1}
{goto g_0}
{:g_1} {sete-p0 g_1}
{disp 15,30,12, mm2 = MarkMail 2 }
{disp 16,30,12, qm2 = Qmail 2 }
{disp 17,30,12, qm4 = Qmail 4 }
{disp 18,30,12, jmr = Jimmer }
{disp 19,30,12, jet = JetMail }
{disp 20,30,12, ros = ROSEmail }
{disp 21,30,12, dcq = DCQwk }
{disp 22,30,12, mkq = MKQwk }
{disp 23,30,12, slx = Silver Express }
{inpu mailware,Choose MAILware for %bbsid from the list below}
{comp mailware,mm2} {ifco g_2}
{comp mailware,qm2} {ifco g_2}
{comp mailware,qm4} {ifco g_2}
{comp mailware,jmr} {ifco g_2}
{comp mailware,jet} {ifco g_2}
{comp mailware,ros} {ifco g_2}
{comp mailware,dcq} {ifco g_2}
{comp mailware,mkq} {ifco g_2}
{comp mailware,slx} {ifco g_2}
{goto g_1}
{:g_2} {sete-p0 g_2}
{disp 15,30,12, Some examples of DOOR }
{disp 16,30,12, commands to help you: }
{disp 17,30,12, }
{disp 18,30,12, open markmail^| }
{disp 19,30,12, }
{disp 20,30,12, s^|~~~~~~~~~~f^| }
{disp 21,30,12, }
{disp 22,30,12, /Q^| }
{disp 23,30,12, }
{inpu dorno,Enter the BBS Command to enter the Maildoor}
{sete-p0 new_bbsid}
{clea}
{subs abbr,1,2,%bbsid}
{disp 2,30,19, }
{disp 3,30,19, }
{disp 4,30,19, }
{disp 5,30,19, }
{disp 6,30,19, }
{disp 7,30,19, }
{disp 8,30,19, }
{disp 2,30,19, LINK = %link}
{disp 3,30,19, ABBR = %abbr}
{disp 4,30,19, BBSID = %bbsid}
{disp 5,30,19, BBSware = %bbsware}
{disp 6,30,19, MAILware = %mailware}
{disp 7,30,19, MAIL Command = %dorno}
{setv ok}
{inpu ok,Enter YES to write info to COMMO.MAC and TABLE.MAC}
{comp ok,yes} {ifco ,new_bbsid}
* ┌──────────────────────────────────────────────────┐
* │ Example of the line to be appended to COMMO.MAC │
* │ │
* │ (:esk) (macl table.mac,esk) │
* └──────────────────────────────────────────────────┘
{wope-a %_hom%commo.mac} ;add link to commo.mac
{setv line, ^(:%link^) ^(macl table.mac,%link^)}
{writ %line}
{wclo}
* ┌──────────────────────────────────────────────────────────────┐
* │ Example of the lines to be appended to TABLE.MAC │
* │ │
* │ (:esk) (setv bbsid,ledge) (setv abbr,le) (setv dorno,mm20|) │
* │ (call mm2) │
* │ (call pcb) │
* └──────────────────────────────────────────────────────────────┘
{wope-a %_hom%table.mac} ;add link to table.mac
{setv line, ^(:%link^) ^(setv bbsid,%bbsid^) ^(setv abbr,%abbr^) ^(setv dorno,%dorno^)}
{writ %line}
{setv line, ^(call %mailware^)}
{writ %line}
{setv line, ^(call %bbsware^)}
{writ %line}
{writ}
{wclo}
{setv line}
{setv ok}
{setv abbr}
{setv mailware}
{setv bbsware}
{clea}
{macl commo.mac} ;return control to COMMO.MAC
* The short macro below uses an external editor to edit COMMO.MAC.
* It is called from COMMO.MAC ... putting CS-MAC in Commo's memory while
* you are editing COMMO.MAC.
* The revised COMMO.MAC is active after you close your editor.
{:ed_cmac} {exec-n %ext_ed %_hom%commo.mac} {macl commo.mac}